package security.Authentication.UserPass;

import java.net.InetAddress;

import security.Authentication.Base.AuthenticationRequest;

/**
 * Request with user name and password
 * @author Andreas Carmvall
 */
public class UserPassRequest extends AuthenticationRequest {

	/**
	 * The user name
	 */
	private String userName;
	/**
	 * The password
	 */
	private String password;
	
	/**
	 * Class constructor
	 * @param address the address from where the request was sent
	 * @param userName the user name
	 * @param password the password
	 */
	public UserPassRequest(InetAddress address, String userName, String password) {
		super(address);
		
		this.userName = userName;
		this.password = password;
	}
	
	/**
	 * Get the request user name
	 * @return the user name
	 */
	public String getUserName() {
		return userName;
	}
	
	/**
	 * Get the request password
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
}
